Part Number Hot Search : 
2D120 MAX148 TF4N60 MSR127R KDR367 2412D NM93CS06 1MD03
Product Description
Full Text Search
 

To Download DS1629 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  1 of 22 021202 features  measures temperatures from -55c to +125c; fahrenheit equi valent is -67f to 257f  real time clock counts seconds, minutes, hours, date of the month, month, day of the week, and year with leap year compensation through the year 2100  thermometer accuracy is 2.0c (typ)  thermometer resolution is 9 bits (expandable)  thermostatic and time alarm settings are user definable. dedicated open-drain alarm output  32 bytes sram for general data storage  data is read from/written to via a 2-wire serial interface. (open drain i/o lines)  wide power supply range (2.2v - 5.5v)  applications include personal computers/pdas, cellular telephones, office equipment, dataloggers, or any thermally sensitive system  8-pin 150mil soic package pin assignment pin description sda - 2-wire serial data input/output scl - 2-wire serial clock gnd - ground alrm - thermostat & clock alarm output x 1 - 32.768 khz crystal input x 2 - 32.768 khz crystal feedback output osc - buffered oscillator output v dd - power supply voltage (+2.2v to +5v) description the DS1629 2-wire digital thermomete r and real time clock integrates the critical functions of a real time clock and a temperature monitor in a small outline 8-pin soic package. communication to the DS1629 is accomplished via a 2-wire interface. the wide power supply range and minimal power requirement of the DS1629 allow for accurate time /temperature measurements in battery-powered applications. the digital thermometer provides 9-bit temperature readings which indicate the temperature of the device. no additional components are required; the device is truly a ?temperature -to-digital? converter. the clock/calendar provides seconds, minutes, hours, day, date of the month, day of the week, month, and year. the end of the month date is automatically ad justed for months with less than 31 days, including corrections for leap years. it operates in either a 12- or 24-hour format with am/pm indicator in 12-hour mode.the crystal oscillator frequen cy is internally divided, as sp ecified by device configuration. an open-drain output is provided that can be used as the oscillator input for a microcontroller. DS1629 2-wire digital thermometer and real time clock www.maxim-ic.com 1 2 3 4 8 7 6 5 gnd alrm scl sda v dd osc x 1 x 2 DS1629s 8-pin soic (150-mil)
DS1629 2 of 22 the open-drain alarm output of the DS1629 will become active when either the measured temperature exceeds the programmed over-temperature limit (t h ) or current time reaches the programmed alarm setting. the user can configure which event (time only, temperature only, either, or neither) will generate an alarm condition. for storage of general system data or time/temperatur e datalogging, the DS1629 features 32 bytes of sram. applications for th e DS1629 include personal co mputers/ pdas, cellular telephones, office equipment, ther mal dataloggers, or any micropr ocessor-based, thermally-sensitive system. detailed pin description table 1 pin symbol description 1sda data input/output pin for 2-wire serial communication port. 2scl clock input/output pin for 2-wire serial communication port. 3alrm alarm output open drain time/temperature alarm output with configurable active state 4 gnd ground pin. 5x 2 32.768 khz feedback output . 6x 1 32.768 khz crystal input. 7osc oscillator output. open-drain output used for microcontroller clock input. 8v dd supply voltage 2.2v - 5.5v input power pin. overview a block diagram of the DS1629 is shown in figure 1. the DS1629 consists of six major components: 1. direct-to-digital temperature sensor 2. real time clock 3. 2-wire interface 4. data registers 5. thermal & clock alarm comparators 6. oscillator divider & buffer the factory-calibrated temperature sensor requires no external com ponents. the very first time the DS1629 is powered up it begins temperature conver sions, and performs conversions continuously. the host can periodically read the value in the temperature register, which contains the last completed conversion. as conversions are performed in the background, reading the temperature register does not affect the conversion in progress. the host can modify DS1629 configuration such th at it does not power up in the auto-convert or continuous convert modes. this could be beneficial in power-sensitive applications. the real time clock/calendar maintains a bcd count of seconds, minutes, hours, day of the week, day of the month, month, and year. it does so with an in ternal oscillator/ divi der and a required 32.768 khz crystal. the end of the month date is automatically updated for months with less than 31 days, including compensation for leap years through the year 2100. the clock format is configurable as a 12- (power-up default) or 24-hour format, with an am/pm indicat or in the 12-hour mode. the rtc can be shut down by clearing a bit in the clock register.
DS1629 3 of 22 the crystal frequency is internally divided by a factor that the user defines. th e divided output is buffered and can be used to clock a microcontroller. the DS1629 features an open-drain alarm output. it ca n be configured to activate on a thermal event, time event, either thermal or time, or neither thermal nor time (disabled, power-up state). the thermal alarm becomes active when measured temperature is greater than or equal to the value stored in the th thermostat register. it will remain active until temperature is equal to or less than the value stored in tl, allowing for programmable hysteresis. the clock alarm will activate at the specific minute of the week that is programmed in the clock alarm register. the time alarm is cleared by reading from or writing to either the clock register or the clock alarm register. the DS1629 configuration register defines several key items of de vice functionality. it sets the conversion mode of the digital ther mometer and what event, if any, will constitute an alarm condition. it also sets the active state of the alarm output. finally, it enables/disables and sets the division factor for the oscillator output. the DS1629 also features 32 bytes of sram for storage of general information. this memory space has no bearing on thermometer or chronograph opera tion. possible uses for this memory are time/temperature histogram storage, thermal datalogging, etc. digital data is written to/read from the DS1629 via a 2-wire interface, and all communication is msb first. individual registers are acce ssed by unique 8-bit command protocols. the DS1629 features a wide power supply range (2.2v  v dd  5.5v) for clock functionality, sram data retention, and 2-wire comm unication. eeprom writes and temper ature conversions should only be performed at 2.7v  v dd  5.5v for reliable results.
DS1629 4 of 22 DS1629 functional block diagram figure 1 operation-measuring temperature the DS1629 measures temperature through the use of an on-chip temperature measurement technique with an operating range from -55  c to +125  c. the device can be configured to perform a single conversion, store the result, and return to a st andby mode or it can be programmed to convert continuously. regardless of the mode used, the last completed digital temperatur e conversion is retrieved from the temperature register using the read temperature (aah) protocol, as described in detail in the ?command set? section. de tails on how to change the settings after power-up are contained in the ?operation-configuration? section. the DS1629 measures temperature by counting the number of clock cycles that an oscillator with a low temperature coefficient goes through during a gate period determined by a high temperature coefficient oscillator. the counter is preset with a base count that corresponds to -55  c. if the counter reaches 0 before the gate period is over, the temperature register, which is also preset to the -55  c value, is incremented, indicating that the temperature is higher than -55  c.
DS1629 5 of 22 at the same time, the counter is then preset with a value determined by the slope accumulator circuitry. this circuitry is needed to compensate for the parabolic behavior of the oscillators over temperature. the counter is then clocked again until it reaches 0. if the gate period is still not finished, then this process repeats. the slope accumulator is used to compensate for the nonlinear behavior of the oscillators over temperature, yielding a high reso lution temperature measurement. th is is done by changing the number of counts necessary for the counter to go through fo r each incremental degree in temperature. to obtain the desired resolution, therefore, both the value of the counter and the number of counts per degree c (the value of the slope accumulator) at a given temperature must be known. internally, this calculation is done inside the DS1629 to provide 0.5  c resolution. table 2 describes the exact relationship of output data to measured te mperature. for fahrenheit usage, a lookup table or conversion factor must be used. note that temperature is represen ted in the DS1629 in terms of a 0.5  c lsb, yielding the 9-bit format illustrated in table 2. higher resolutions may be obtained by implementing the algorithm in application note 105 and performing the following calculati on. the 8-bit count_remain value can be obtained via the read counter (a8h) comma nd and the count_per_c value (als o 8-bit) is read via the read slope command (a9h). t = temp_read -0.25 + c count_per_ emain) _c_count_r (count_per temperature/data relationships table 2 s2 6 2 5 2 4 2 3 2 2 2 1 2 0 msb msb (unit = c) lsb 2 -1 0000000lsb temperature digital output (binary) digital output (hex) +125c 01111101 00000000 7d00h +25c 00011001 00000000 1900 0.5c 00000000 10000000 0080 0c 00000000 00000000 0000 -0.5c 11111111 10000000 ff80 -25c 11100111 00000000 e700h -55c 11001001 00000000 c900h
DS1629 6 of 22 operation-real time clock/calendar DS1629 real-time clock/calendar data is accessed with the 2-wire command protocol c0h. if the r/ w bit in the 2-wire control byte is set to 0, the bus master will set the clock (write to the clock register). the bus master sets the r/ w bit to 1 to read the current time (read from the clock register). refer to the ?2-wire serial bus? section for details on this protocol. the format of the clock register is shown below in figure 2. data format for the clock register is binary- coded decimal (bcd). most of the clock register is self-explanato ry, but a few of the bits require elaboration. ch = clock halt bit. this bit is set to 0 to enable the oscillator and set to 1 to disable it. if the bit is changed during a write to the clock register, the os cillator will not be starte d (or stopped) until the bus master issues a stop pulse. the DS1629 power-up de fault has the oscillator enabled (ch=0) so that osc can be used for clocking a microcontroller at power-up. 12/24 = clock mode bit. this bit is set high when the cl ock is in the 12-hour mode and set to 0 in the 24- hour mode. bit 5 of byte 02h of the clock register c ontains the msb of the hours (1 for hours 20-23) if the clock is in the 24-hour mode. if the clock mode is se t to the 12-hour mode, this is the am/pm bit. in the 12-hour mode, a 0 in this location denotes am and a 1 denotes pm. when setting the clock, this bit must be written to according to the clock mode used. bits in the clock register filled with 0 are a "don't care" on a write, but will always read out as 0. DS1629 clock register format figure 2
DS1629 7 of 22 operation-alarms the DS1629 features an open-drain alarm output with a user-definable active state (factory default is active low). by programming the configuration register, the user also defines the event, if any, would generate an alarm condition. the four possibilities are:  temperature alarm only  time alarm only  either temperature or time alarm  alarm disabled (power?up default) refer to the ?operation-configuration? section for programming protocol. if the user chooses the alarm mode under which a th ermal or time event genera tes an alarm condition, it is possible that either or both are generating the alarm. there are status bits in the configuration register (taf, caf) that define the current st ate of each alarm. in this way, the master can determine which event generated the alarm. if both events (thermal and time) are in an alarm state, the alrm output will remain active until both are cleared. alrm is the logical or of the taf and caf flags if the device is configured for either to trigger the alrm output. figure 3 illustrates a possible scenario with this alarm mode. refer to the ?thermometer alarm? and ?clock alarm? sections on how respective alarms are cleared. DS1629 alarm transfer function figure 3
DS1629 8 of 22 thermometer alarm the thermostat comparator updates as soon as a te mperature conversion is complete. when the DS1629?s temperature meets or exceeds the value stored in the high temperature trip register (th), the taf flag becomes active (high), and will stay active until the temp erature falls below the temperature stored in the low temperature trigger register (tl). the respective register can be accessed over the 2-wire bus via the access th (a1h) or access tl (a2h) commands. reading from or writing to the respective register is controlled by the state of the r/ w bit in the 2-wire control byte (see ?2-wire serial data bus? section). the format of the th and tl registers is identical to that of the thermometer register; that is, 9-bit 2?s complement representation of the temperature in c. both th and tl are nonvolatile eeprom registers guaranteed to 2k write cycles. thermostat setpoint (th/tl) format table 3 s2 6 2 5 2 4 2 3 2 2 2 1 2 0 msb msb (unit = c) lsb 2 -1 0000000lsb clock alarm the clock alarm flag (caf) becomes active within one second after the second, minute, hour, and day (of the week) of the clock register match the respective bytes in the clock alarm register. caf will remain active until the bus master writes to or reads from either the clock register via the c0h command or the clock alarm register via the c7h command. the format of the clock alarm register is shown in figure 4. the power-up default of the DS1629 has the clock alarm set to 12:00am on sunday. the register can be accessed over the 2-wire bus via the access clock alarm (c7h) command. reading from or writing to the register is controlled by the state of the r/ w bit in the 2-wire control byte (see ?2-wire serial data bus? section). the master must take precaution in programming bit 5 of byte 02h to ensure that the alarm setting matches the current clock mode. bits designated with a 0 are a "don't care" on writes, but will always read out as a 0. operation-user sram the DS1629 has memory reserved for any purpose the us er intends. the page is organized as 32 bytewide locations. the sram space is formatted as shown in table 4. it is accessed via the 2-wire protocol 17h. if the r/ w bit of the control byte is set to 1, the sram will be read and a 0 in this location allows the master to write to the array. reads or writes can be performed in the single byte or page mode. as such, the master must write the byte address of the first data location to be accessed. if the bus master is writing to/reading from the sram array in the page mode (multiple byte mode), the address pointer will automatically wrap from address 1fh to 00h following the ack after byte 1fh. the sram array does not have a defined power-up defa ult state. refer to the ?command set? section for details of the access memory protocol.
DS1629 9 of 22 DS1629 sram format table 4 byte contents 00h sram byte 0 01h sram byte 1 02h sram byte 2 ? ? ? ? ? ? 1eh sram byte 30 1fh sram byte 31 DS1629 clock alarm register format figure 4 operation-configuration/status register the configuration/status register is accessed vi a the access config (ach) function command. writing to or reading from the register is determined by the r/ w bit of the 2-wire control byte (see ?2-wire serial data bus? section). data is read from or written to the configuration register msb first. the format of the register is illustrated in figure 5. the effect each bit has on DS1629 functionalit y is described along with the power-up state and volatility. the user has read/write access to the msb and read-only access to the lsb of the register. configuration/status register figure 5 os1 os0 a1 a0 0 cnv pol 1sh msb msb lsb caf taf cal tal 0 0 0 0 lsb 1sh = temperature conversion mode. if 1shot is "1", the DS1629 will perform one temperature conversion upon reception of the start convert t protocol. if 1shot is "0", the DS1629 will continuously perform temperature c onversions and store the last comp leted result in the thermometer register. the user has read/ write access to the nonvol atile bit, and the factory default state is "0" (continuous mode). pol = alrm polarity bit. if pol = "1", the active state of the alrm output will be high. a "0" stored in this location sets the thermostat output to an active low state. the user has read/write access to the nonvolatile pol bit, and the factory default state is "0" (active low). cnv = power-up conversion state. if cnv="0" (factory default), the DS1629 will automatically initiate a temperature conversion upon power-up and supply st ability. setting cnv="1" will cause the DS1629 to power-up in a standby state. table 5 illustrates how the user can set 1sh and cnv, depending on the power consumption sensitivity of the application.
DS1629 10 of 22 DS1629 thermometer power-up modes table 5 cnv ish mode 0 0 powers up converting continuously (factory default) 0 1 automatically performs one conversi on upon power-up. subsequent conversions require a start convert command. 1 0 powers up in standby; upon start conve rt command, conversions will be performed continuously. 1 1 powers up in standby; upon start conve rt command, a single conversion will be performed and stored. a0, a1 = alarm mode. table 6 defines the DS1629 alarm mode, based on the settings of the a0 and a1 bits. these bits define what event will activate the alrm output. the alarm flags, caf, taf, cal, tal, are functional regardless of the state of these bits. both locations are re ad/write and nonvolatile, and the factory default state disabl es the alrm output (a0=a1=0). alarm mode configuration table 6 a1 a0 alarm mode 0 0 neither thermal or time (disabled) 0 1 thermal only 1 0 time only 1 1 either thermal or time os0, os1 = oscillator output setting. table 7 defines the frequency of the osc output, as defined by the settings of these bits. both locations are read/w rite and nonvolatile, and the factory default state sets the osc frequency equal to the crys tal frequency (os0=os1="1"). the output should be disabled if the user does not intend to use it to reduce power consumption. osc frequency configuration table 7 os1 os0 osc frequency 00 disabled 0 1 1/8f 0 1 0 1/4f 0 11 f 0 caf = clock alarm flag. this volatile status bit will be set to "1" when the clock comparator is in an active state. once set, it will remain "1" until reset by writing to or reading from either the clock register or clock alarm register. a "0" in this location indicat es the clock is not in an alarm condition. this is a read-only bit (writes to this locati on constitute a "don?t care") and the power-up default is the flag cleared (caf="0"). taf = thermal alarm flag. this volatile status bit will be set to "1" when the thermal comparator is in an active state. once set, it will remain "1" until measured temperature falls below the programmed tl setting. a "0" in this location indicates the thermomete r is not in an alarm condition. this is a read-only bit (writes to this location cons titute a ?don?t care?) and the powe r-up default is the flag cleared (taf="0").
DS1629 11 of 22 cal = clock alarm latch. this volatile status bit will be set to "1" when the clock comparator becomes active. once set, it will remain latched until DS1629 power is cycled. a "0" in this location indicates the clock has never been in an alarm condition since the DS1629 was powered-up. this is a read-only bit (writes to this location c onstitute a ?don?t care?) and the power-up default is the flag cleared (cal="0"). tal = thermal alarm latch. this volatile status bit will be set to "1" when the thermal comparator becomes active. once set, it will remain latched until ds 1629 power is cycled. a "0" in this location indicates the DS1629 temperature has never exceeded th since power-up. this is a read-only bit (writes to this location constitute a ?don? t care?) and the power-up default is the flag cleared (tal="0"). 0 = don?t care. "don?t care" on a write, but will always read out as a "0". 2-wire serial data bus the DS1629 supports a bi-directional two-wire bus a nd data transmission prot ocol. a device that sends data onto the bus is defined as a transmitter, and a device receiving data as a receiver. the device that controls the message is called a ?master.? the devices that are controlled by the master are ?slaves.? the bus must be controlled by a master device which genera tes the serial clock (scl), controls the bus access, and generates the start and st op conditions. the DS1629 operates as a slave on the 2-wire bus. connections to the bus are made via the open-drain i/o lines sda and scl. the following bus protocol has been defined:  data transfer may be initiated only when the bus is not busy.  during data transfer, the data line must remain stable whenever the clock line is high. changes in the data line while the clock line is high will be interpreted as control signals. accordingly, the following bus conditions have been defined: bus not busy: both data and clock lines remain high. start data transfer: a change in the state of the data line, from high to low, while the clock is high, defines a start condition. stop data transfer: a change in the state of the data line, from low to high, while the clock line is high, defines the stop condition. data valid: the state of the data line represents valid da ta when, after a start condition, the data line is stable for the duration of the high period of th e clock signal. the data on the line must be changed during the low period of the clock signal. th ere is one clock pulse per bit of data. each data transfer is initiated with a start c ondition and terminated with a stop condition. the number of data bytes transferred between start and stop conditions is not limited, and is determined by the master device. the information is transferre d byte-wise and each receiver acknowledges with a 9 th bit. the maximum clock rate of the DS1629 is 400 khz.
DS1629 12 of 22 acknowledge: each receiving device, when addressed, is obl iged to generate an acknowledge after the reception of each byte. the master device must generate an extra clock pulse which is associated with this acknowledge bit. a device that acknowledges must pull down the sda lin e during the acknowledge clock pulse in such a way that the sda line is stable low during the high period of the acknowledge related clock pulse. of course, setup and hold times must be taken into account . a master must signal an end of data to the slave by not generating an acknowledge bit on the last byte th at has been clocked out of the slave. in this case, the slave must leave the data line high to enable the master to generate the stop condition. figure 6 details how data transfer is accomplishe d on the two-wire bus. depending upon the state of the r/ w bit, two types of data transfer are possible: 1. data transfer from a master transmitter to a slave receiver. the first byte transmitted by the master is the slave address. next follows a number of data bytes. the slave returns an acknowledge bit after each received byte. 2. data transfer from a slave transmitter to a master receiver. the 1 st byte (the slave address) is transmitted by the master. the slave then return s an acknowledge bit. next follows a number of data bytes transmitted by the slave to the master . the master returns an acknowledge bit after all received bytes other than the last byte. at the e nd of the last received byte, a ?not acknowledge? is returned. the master device generates all of the serial clock pulses and the start and stop conditions. a transfer is ended with a stop condition or with a repeated start condition. since a repeated start condition is also the beginning of the next serial transfer, the bus will not be released. the DS1629 may operate in the following two modes: 1. slave receiver mode: serial data and clock are received th rough sda and scl. after each byte is received, an acknowledge bit is transmitted. star t and stop conditions are recognized as the beginning and end of a serial transfer. addre ss recognition is performed by hardware after reception of the slave address and direction bit. 2. slave transmitter mode: the first byte is received and handled as in the slave receiver mode. however, in this mode, the direction bit will indicate that the transfer direction is reversed. serial data is transmitted on sda by the DS1629 while th e serial clock is input on scl. start and stop conditions are recognized as the beginning and end of a serial transfer. slave address a control byte is the 1 st byte received following the start condition from the master device. the control byte consists of a 4-bit control code; for the DS1629, this is set as 1001 binary for read and write operations. the next 3 bits of the control byte are th e device select bits (a2, a1, a0). all 3 bits are hard- wired high for the DS1629. thus, only one DS1629 can reside on a 2-wire bus to avoid contention; however, as many as seven other devices with the 1001 control code can be dropped on the 2-wire bus so long as none contain the 111 address. th e last bit of the control byte (r/ w ) defines the operation to be performed. when set to a 1 a read operation is selecte d, and when set to a 0 a write operation is selected. following the start condition, the DS1629 monitors th e sda bus checking the device type identifier being transmitted. upon receiving th e control byte, the slave device outputs an ack on the sda line.
DS1629 13 of 22 2-wire serial communication with DS1629 figure 6
DS1629 14 of 22 2-wire serial communication with DS1629 figure 6 (continued)
DS1629 15 of 22 command set the command set for the DS1629 as shown in table 8 is as follows: access config [ach] if r/ w is "0", this command writes to the configurati on register. after issuing this command, the next data byte value is to be written into the configuration register. if r/ w is "1", the next data byte read is the value stored in the configuration register. because the msb of the configuration register is read/write and the lsb is read-only, the user only needs to write one byte to the register. one or two bytes can be read. start convert t [eeh] this command begins a temperature conversion. no further data is required. in one-shot mode, the temperature conversion will be performed and then the DS1629 will remain idle. in continuous mode, this command will initiate conti nuous conversions. issuance of this protocol may not required upon DS1629 power-up, depending upon the state of the c nv bit in the configuration register. stop convert t [22h] this command stops temperature conversion. no furthe r data is required. this command may be used to halt a DS1629 in continuous convers ion mode. after issuing this command, the current temperature measurement will be completed, and then the DS1629 will remain idle un til a start convert t is issued to resume conversions. read temperature [aah] this command reads the last temperature conversion result from the thermometer register in the format described in the ?operation-measuring temperat ure? section. if one?s application can accept thermometer resolution of only 1.0c, the master only must read the first data byte and follow with a nack and stop. for higher resolution, both bytes must be read. read counter [a8h] this command returns the 8-bit count_remain va lue, used for high resolution thermometer calculations. read slope [a9h] this command returns the 8-bit count_per_c va lue, used for high resolution thermometer calculations. access clock [c0h] accesses the DS1629 clock/calendar register. if r/ w is "0" the master will write to the clock register (set the clock). if r/ w is "1", the clock register is read. the cl ock register is addressed, so the user must provide a beginning byte address, whether a read or write is performed. a write to or read from this register or the clock alarm register is required to clear the clock alarm flag (caf). refer to figure 6 for the protocol and figure 2 for the clock register map. access clock alarm [c7h] accesses the DS1629 clock alarm register. if r/ w is "0" the master will write to the clock alarm register (set/ change the alarm). if r/ w is "1", the clock alarm register is read. the clock alarm register is addressed, so the user must provide a beginning byte address, whether a read or write is performed. a write to or read from this register or the clock register is required to clear the clock alarm flag (caf). refer to figure 6 for the protocol and fi gure 4 for the clock alarm register map.
DS1629 16 of 22 access th [a1h] if r/ w is "0", this command writes to the th register . after issuing this command, the next two bytes written to the DS1629, in the format described for ther mostat set-points, will se t the high temperature threshold for operation of the alrm output and taf/tal flags. if r/ w is "1", the value stored in this register is read back. access tl [a2h] if r/ w is "0", this command writes to the tl register . after issuing this command, the next two bytes written to the DS1629, in the format described for ther mostat set-points, will se t the high temperature threshold for operation of the alrm output and taf flag. if r/ w is "1", the value stored in this register is read back. access memory [17h] this command instructs the DS1629 to access the user -sram array, starting with the specified byte address. read/write depe nds upon the state of the r/ w in the 2-wire control byte. the user can read/write all 32 bytes in succession within one command sequence, with the pointer automatically wrapping from 1fh to 00h; if the master attempts to read/write more than 32 bytes, the address pointer will wrap to the 1 st byte after the 32 nd is read/written and ack?d by the master/slave. refer to figure 6 for command protocol. DS1629 command set table 8 instruction protocol description 2-wire bus data after issuing protocol notes configuration / memory commands writes to 8-bit configuration register 1 data byte access configuration ach reads from configuration/status register 1 or 2 data bytes 1, 5 writes to sram array starting address+n- bytes access memory 17h read from sram array starting address+n- bytes 1, 2 thermometer commands start convert t eeh initiates temperature conversion(s) idle 3 stop convert t 22h terminates continuous conversions idle 3 read temperature aah reads temperature register read 1 or 2 data bytes 4 read counter a8h reads count_remain read 1 data byte read slope a9h reads count_per_c read 1 data byte access th a1h writes to/reads from th register write 2 data bytes read 1 or 2 data bytes 1, 5 access tl a2h writes to/reads from tl register write 2 data bytes read 1 or 2 data bytes 1, 5 clock commands access clock c0h sets/reads clock starting address + n- bytes 1, 2 access clock alarm c7h sets/ reads clock alarm starting address + n- bytes 1, 2
DS1629 17 of 22 notes: 1. data direction depends upon r/ w bit in the 2-wire control byte. 2. when accessing (reading from or writing to) addressed sram in the page mode, the address pointer will automatically roll from the most significant byte to the least significant byte following the ack of the most significant byte. 3. in continuous conversion mode, a stop convert t command will halt c ontinuous conversion. to restart, the start convert t command must be issued. in one-shot mode, a start convert t command must be issued for every temperature reading desired. 4. if the user only desires 8-bit thermometer resolu tion, the master need only read 1 data byte, and follow with a nack and stop. if higher resolution is required, 2 bytes must be read. 5. writing to e 2 registers typically requires 10 ms at room temperature (50 ms max). after issuing a write command, no further writes s hould be requested for 50 ms. e 2 writes should only occur under the conditions 2.7v  v dd  5.5v and 0c  t j  70c.
DS1629 18 of 22 sample command sequence table 9 example: the bus master configures the DS1629 in the power-up one-shot mode. it sets the alrm output active low with only the thermometer generating an alrm and disables the oscillator output. it then sets the clock to 11:30am on thursday, janua ry 1, 1998. it sets the thermostat with th=50c. bus master mode DS1629 mode data (msb first) comments tx rx start bus master in itiates a start condition tx rx 9eh bus master sends DS1629 address; r/ w = 0 rx tx ack DS1629 generates acknowledge bit tx rx ach bus master sends access configuration protocol rx tx ack DS1629 generates acknowledge bit tx rx 11h write to configuration as specified rx tx ack DS1629 generates acknowledge bit tx rx start bus master initiate s a repeated start condition tx rx 9eh bus master sends DS1629 address; r/ w =0 rx tx ack DS1629 generates acknowledge bit tx rx c0h bus master sends access clock protocol rx tx ack DS1629 generates acknowledge bit tx rx 00h bus master sends starting clock register address rx tx ack DS1629 generates acknowledge bit tx rx 00h bus master sets seconds and enables the clock rx tx ack DS1629 generates acknowledge bit tx rx 30h bus master sets clock minutes rx tx ack DS1629 generates acknowledge bit tx rx 51h bus master sets cloc k hours and am/pm clock mode rx tx ack DS1629 generates acknowledge bit tx rx 05h bus master sets day to thursday rx tx ack DS1629 generates acknowledge bit tx rx 01h bus master sets date to the first of the month rx tx ack DS1629 generates acknowledge bit tx rx 01h bus master sets month to january rx tx ack DS1629 generates acknowledge bit tx rx 98h bus master sets year to ?98 rx tx ack DS1629 generates acknowledge bit tx rx start bus master initiate s a repeated start condition tx rx 9eh bus master sends DS1629 address; r/ w =0 rx tx ack DS1629 generates acknowledge bit tx rx a1h bus master sends access th protocol rx tx ack DS1629 generates acknowledge bit tx rx 32h bus master writes msb of th (50c) rx tx ack DS1629 generates acknowledge bit tx rx 00h bus master write s lsb of th (50c) rx tx ack DS1629 generates acknowledge bit tx rx stop bus master in itiates stop condition
DS1629 19 of 22 sample command sequence table 10 example: assuming the DS1629 is configured such th at the clock is running and the thermometer is converting, read the current time and temperature. also read the status of the alarm flags. bus master mode DS1629 mode data (msb first) comments tx rx start bus master in itiates a start condition tx rx 9eh bus master sends DS1629 address; r/ w = 0 rx tx ack DS1629 generates acknowledge bit tx rx aah bus master sends read temperature protocol rx tx ack DS1629 generates acknowledge bit tx rx start bus master initiate s a repeated start condition tx rx 9fh bus master sends DS1629 address; r/ w = 1 rx tx ack DS1629 generates acknowledge bit rx tx DS1629 generates msb of temperature tx rx ack bus master ge nerates acknowledge bit rx tx DS1629 generates lsb of temperature tx rx nack master generates no-acknowledge bit tx rx start bus master initiate s a repeated start condition tx rx 9eh bus master sends DS1629 address; r/ w = 0 rx tx ack DS1629 generates acknowledge bit tx rx c0h bus master sends access clock protocol rx tx ack DS1629 generates acknowledge bit tx rx 01h bus master set clock register address to ?minutes? rx tx ack DS1629 generates acknowledge bit tx rx start bus master initiate s a repeated start condition tx rx 9fh bus master sends DS1629 address; r/ w = 1 rx tx ack DS1629 generates acknowledge bit rx tx DS1629 generates minutes tx rx ack bus mastergenerates acknowledge bit rx tx DS1629 generates hours and clock mode tx rx ack bus master ge nerates acknowledge bit ??? ? rx tx DS1629 generates year tx rx nack master generates no-acknowledge bit tx rx start bus master initiate s a repeated start condition tx rx 9eh bus master sends DS1629 address; r/ w = 0 rx tx ack DS1629 generates acknowledge bit tx rx ach bus master sends access configuration protocol rx tx ack DS1629 generates acknowledge bit tx rx 9fh bus master sends DS1629 address; r/ w = 1 rx tx ack DS1629 generates acknowledge bit rx tx DS1629 generates msb of configuration register tx rx ack master generates acknowledge bit rx tx DS1629 generates lsb of configuration register (flags) tx rx nack master generates no-acknowledge bit tx rx stop bus master in itiates stop condition
DS1629 20 of 22 absolute maximum ratings* voltage on v dd , relative to ground (note 1) -0.3v to +7.0v voltage on any other pin, relative to ground -0.3v to (v dd +0.3v) operating temperature -55c to +125c storage temperature -55c to +125c soldering temperature 260c for 10 seconds this is a stress rating only and f unctional operation of the device at these or any other conditions above those indicated in the operation sections of this specification is not implied. exposure to absolute maximum rating conditions for extended periods of time may affect reliability. recommended dc operating conditions (-55c to +125c; 2.2v  v dd  5.5v) parameter symbol condition min typ max units notes supply voltage v dd 2.2 5.5 v dc electrical characteristics (-55c to +125c; 2.2v  v dd  5.5v) parameter symbol condition min typ max units notes logic 0 input v il -0.5 0.3v dd v logic 1 input v ih 0.7v dd v dd +0.5 v logic 0 output (sda, alrm, osc) v ol 0 0.4 v 2 input current each i/o pin 0.4 DS1629 21 of 22 dc electrical characteristics: digital thermometer (-55c to +125c; 2.7v  v dd  5.5v) parameter symbol condition min typ max units notes DS1629 thermometer error t err -10c to +85c 2.7v  v dd  5.5v 2.0 c 6 resolution 0.03 0.5 c 7 conversion time t convt 400 1000 ms ac electrical characteristics: 2-wire interface (-55c to +125c; 2.2v  v dd  5.5v) parameter symbol condition min typ max units notes scl clock period t 1 2.5 s data in setup time to scl high t 2 100 ns data out stable after scl low t 3 0ns sda low setup time to scl low (start) t 4 100 ns sda high hold time after scl high (stop) t 5 100 ns capacitance load for each bus line c b 400 pf 8 input capacitance c i 5pf crystal capacitance c c 12.5 pf 9 notes: 1. all voltages are referenced to ground, unless otherwise noted. 2. logic 0 voltage specified at a sink current of 4ma at v dd = 5.0v and 1.5ma at v dd =2.2v. 3. i/o pins of fast mode devices must not obstruct the sda and scl lines if v dd is switched off. 4. standby current specified with temperature c onversions and clock osc illator/buffer shut down, alrm pin open, and sda, scl = v dd , 0c to +70c. 5. i ddx specified with alrm pin open, and 0c to +70c. 6. see typical accuracy curve for specification limits outside the temperature range indicated. thermometer error is specified for 2.7v  v dd  5.5v. accuracy will degrade approximately 0.5c if alrm is sinking the maximum current. 7. thermometer resolution (in c) = 1/count_per_c (t). the calibration algorithm is such that count_per_c and thus resolution varies over temperature (but is constant at a given temperature for a given device ) and from device to device.
DS1629 22 of 22 8. cb - total capacitance of one bus line in pf. 9. refer to application note 58. 2-wire bus timing diagram figure 7 typical DS1629 thermometer performance curve figure 9


▲Up To Search▲   

 
Price & Availability of DS1629

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X